package 创建者模式.工厂模式.简单工厂模式.after;

public class CoffeeStore {
    public Coffee orderCoffee(String type){
        CoffeeFactory factory=new CoffeeFactory();
        //调用生产咖啡的方法
        Coffee coffee=factory.creatCoffee(type);

        coffee.addMilk();
        coffee.addSugar();

        return coffee;
    }

}
